<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
        /* 字体图标的引入 */
        @font-face {
            font-family: "icomoon";
            src: url("fonts/icomoon.eot?s7xnju");
            src: url("fonts/icomoon.eot?s7xnju#iefix") format("embedded-opentype"),
                url("fonts/icomoon.ttf?s7xnju") format("truetype"),
                url("fonts/icomoon.woff?s7xnju") format("woff"),
                url("fonts/icomoon.svg?s7xnju#icomoon") format("svg");
            font-weight: normal;
            font-style: normal;
            font-display: block;
        }

        div {
            border: black solid 1px;
            width: 200px;
            height: 30px;
            position: relative;
        }

        div::before {
            /* 对位置进行调整 */
            position: absolute;
            top: 5px;
            right: 4px;

            /* content: ""; */
            /* 用以下数字可以代替上面小方框字体图标，避免看起来都一样 */
            content: '\e986';
            /* 字体图标 */
            font-family: "icomoon";
            font-size: 22px;
            /* 字体图标end */
            

        }
    </style>
</head>

<body>
    <div></div>
</body>

</html>